package com.itheima.homework.test1;

/**
 * @author jiangxun
 * @date 11-19-2024
 */
public abstract class Card {
    private String id;
    private double balance;

    public Card(String id, double balance) {
        this.id = id;
        this.balance = balance;
    }

    abstract void pay(double salary);

    public String getId() {
        return id;
    }

    public double getBalance() {
        return balance;
    }
}
